 <template>
  <div>
    <!-- npm install vant@2 -->
    <div class="LoginTop">
      <div class="box">{{middleTop}}</div>
      <div>
        <slot name="right"></slot>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props:['middleTop']
};
</script>

<style scoped>
* {
  margin: 0;
  padding: 0;
}

body {
  background-color: antiquewhite;
}

.LoginTop {
  width: 100%;
  height: 45px;
  background-color: #fff;
  display: flex;
}
.box {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  font-size: 3vw;
  /* px-to-vw   vscode插件 (alt+z px和vw转换)*/
}
</style>